package cn.edu.swu.cart;

public class Cart {
    private int id;
    private int userId;
    private int productId;
    private String name;
    private String image;
    private int quantity;
    private Double price;


    // 构造函数
    public Cart(int id, int userId, int productId, String name, String image, int quantity, Double price) {
        this.id = id;
        this.userId = userId;
        this.productId = productId;
        this.name = name;
        this.image = image;
        this.quantity = quantity;
        this.price = price;
    }

    public Cart() {

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
}
